from django.conf.urls import url
from . import views
from pay.views import PaymentAPIView

urlpatterns = [
    #/orders/places/
    url(r'^places/$',views.PlaceOrderAPIView.as_view(),name='placeorder'),
    url(r'^$',views.OrderAPIView.as_view(),name='order'),
    # 订单支付
    url(r'^(?P<order_id>\d+)/payment/$', PaymentAPIView.as_view()),
    # 订单评价展示
    url(r'^(?P<order_id>\d+)/uncommentgoods/$', views.CommentOrderAPIView.as_view()),
    # 订单商品评价
    url(r'^(?P<order_id>\d+)/comments/$', views.CommentOrderSKUAPIView.as_view()),
]